export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogClickModal": false,
  "searchMenuSpan": 6,
  labelWidth: 120,
  "column": [
	  {
      "type": "input",
      "label": "编号",
      "prop": "driverId",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	{
      "type": "input",
      "label": "名称",
      "prop": "driverName",
      search: true,
      maxlength: 24,
      rules: [{
        required: true,
        message: '请输入名称',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "select",
      "label": "性别",
      "prop": "sex",
      dicUrl: '/admin/dict/type/gender',
      search: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "地址",
      "prop": "address",
      hide: true,
      maxlength: 128,
      "span": 12
    },	  {
      "type": "input",
      "label": "身份证号码",
      hide: true,
      "prop": "idCard",
      maxlength: 20,
      rules: [{
        required: true,
        message: '请输入身份证号码',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "input",
      "label": "驾驶证号码",
      "prop": "licenseNumber",
      maxlength: 20,
      rules: [{
        required: true,
        message: '请输入驾驶证号码',
        trigger: 'blur'
      }],
      "span": 12
    },	  {
      "type": "select",
      "label": "驾照类别",
      "prop": "licenseType",
      rules: [{
        required: true,
        message: '请选择驾照类别'
      }],
      dicUrl: '/admin/dict/type/car_driver_license_type',
      "span": 12
    },	  {
      "type": "input",
      "label": "发证机关",
      hide: true,
      maxlength: 32,
      rules: [{
        required: true,
        message: '请输入发证机关',
        trigger: 'blur'
      }],
      "prop": "certificateOffice",
      "span": 12
    },	  {
      "type": "date",
      hide: true,
      "label": "发证日期",
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      rules: [{
        required: true,
        message: '请选择发证日期'
      }],
      "prop": "certificateDate",
      "span": 12
    },	  {
      "type": "date",
      "label": "生日",
      hide: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      "prop": "birthday",
      "span": 12
    },	  {
      "type": "input",
      "label": "联系电话",
      maxlength: 20,
      rules: [{
        required: true,
        message: '请输入联系电话',
        trigger: 'blur'
      }],
      "prop": "phone",
      "span": 12
    // },	  {
    //   "type": "input",
    //   hide: true,
    //   "label": "职务",
    //   "prop": "post",
    //   maxlength: 24,
    //   "span": 12
    },	  {
      "type": "number",
      hide: true,
      "label": "驾龄",
      value: 1,
      maxRows: 1000000,
      "prop": "workYear",
      "span": 12
    },	  {
      "type": "input",
      "label": "学历",
      "prop": "education",
      maxlength: 128,
      hide: true,
      "span": 12
    },	  {
      "type": "select",
      "label": "状态",
      "prop": "status",
      dicUrl: '/admin/dict/type/use_status',
      search: true,
      value: '1',
      "span": 12
    },	  {
      "type": "select",
      "label": "发车状态",
      "prop": "dispatchStatus",
      editDisplay: false,
      addDisplay: false,
      dicUrl: '/admin/dict/type/car_driver_dispatch_status',
      search: true,
      "span": 12
    },	  {
      "type": "input",
      "label": "用车起始时间",
      hide: true,
      "prop": "useStartTime",
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "用车结束时间",
      hide: true,
      "prop": "useEndTime",
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      type: 'upload',
      width: 140,
      loadText: '附件上传中，请稍等',
      listType:'picture-img',
      accept: ["image/png","image/jpeg","image/jpg"],
      tip: '只能上传jpg，png图片不超过20MB',
      fileSize: 20480,
      propsHttp: {
          res: 'data'
      },
      canvasOption: {
        text: ' ',
        ratio: 0.1
      },
      action: "/act/file/upload",
      "label": "驾照图片",
      "prop": "drivingImage",
    },	  {
      "type": "upload",
      "label": "附件",
      "prop": "attachment",
      accept: [],
      propsHttp: {
        res: 'data',
        name: "original"
      },
      props: {
        label: "original",
        value: "url"
      },
      action: "/act/file/upload",
      listType: 'file',
      hide: true,
      "span": 24
    },	  {
      "type": "textarea",
      "label": "履历",
      maxlength: 512,
      hide: true,
      "prop": "experience",
      "span": 24
    },	  {
      "type": "textarea",
      "label": "备注",
      "prop": "remark",
      maxlength: 256,
      hide: true,
      "span": 24
    },	  {
      "type": "input",
      "label": "创建用户ID",
      "prop": "createId",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "创建用户名称",
      "prop": "createRealname",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "创建部门名称",
      "prop": "deptName",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    },	  {
      "type": "input",
      "label": "更新时间",
      "prop": "updateTime",
      hide: true,
      editDisabled: true,
      addDisplay: false,
      "span": 12
    } ]
}
